package org.springblade.task.base.param;

import lombok.Data;

/**
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: TODO
 * @author syncwt
 * @date ${date} ${time}
 * @version V1.0
 */
@Data
public class BaseParam {

	private String today;
	private String startDate;
	private String endDate;
	private String tableName;
	private int year;
	private int currPage = 0;
	private int totalPage = 0;
	private int pageSize = 5000;
	private int count = 0;

	public void setCount(int count) {
		int totalPage = 0;
		if(count > pageSize) {
			totalPage = count / pageSize;
			if(count % pageSize > 0) {
				totalPage = totalPage + 1;
			}
		} else {
			totalPage =+1;
		}
		this.totalPage = totalPage;
	}

}
